<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>二维码批量生成</title>
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
        }
        .detail{
            padding: 10px 10px;
            text-align: center;
        }
        .header{
            height: 25px;
            font-size: x-large;
        }
        .content{
            margin:20px 0 0 0;
        }
        td{
            text-align: center;
            width: 30px;
            border: 1px solid #cccccc;
        }
        .create{
            width: 100px;
            background-color: #607D8B;
            color: #FFF;
            margin-right: 10px;
        }
    </style>
</head>
<body>
<div class="detail" align="center">
    <div class="header" align="center">线下支付二维码</div>
    <div class="content" align="center">
        <table style="width: 80%;">
            <tr style="height: 50px">
                <td colspan="2" >生 成 状 态</td>
            </tr>
            <tr style="height: 30px">
                <td>二维码绑定表id</td>
                <td>状态</td>
            </tr>
            <volist name="allqrcode" id="vo">
                <tr style="height: 30px">
                    <td>{$vo.id}</td>
                    <td>{$vo.state}</td>
                </tr>
            </volist>
            <tr style="height: 30px">
                <td colspan="2">
                    <div style="float: left">总记录：<?= $success+$error;?> <neq name="success" value="">成功：{$success} </neq><neq name="error" value="">失败：{$error}</neq></div>
                    <div style="float: right"><input type="button" value="生成" class="create" onclick="create()"></div>
                </td>
            </tr>
        </table>
    </div>
</div>
<script src="__PUBLIC__/Wx/js/jquery.js"></script>
<script type="text/javascript">
    function create() {
        $.post("",{'op':'create'},function (date) {
            var div = $(date).find("div.content");
            $("div.content").html(div);
        })//end post
    }//end fun
</script>
</body>
</html>